const express = require('express');
const app = express();
const port = 3000;

app.use(express.static('public'));
app.get('/', (req, res) => {res.send('Express安装成功！欢迎使用Express框架');});
app.listen(port, () => {console.log(`示例应用程序正在监听端口 ${port}`);});